#pragma	once

#include "ZPoolAllocator.h"

namespace	Z	{

//------------------------------------------------------------------------------------------------------------------------
class	PoolObject
{
public:
	static	void*	operator new(size_t kSize)	{
		return PoolAllocator::getSingleton().allocate(kSize);
	}
	static	void	operator delete(void* memory, size_t kSize)	{
		PoolAllocator::getSingleton().deallocate(memory, kSize);
	}
};

}